from django.conf.urls import url
from . import views


urlpatterns = [
    url(r'^users/$', views.UserView.as_view()),
    # 判断用户名是否存在,用户名输入框失去焦点时就会往这里发送请求
    url(r'^usernames/(?P<username>\w{5,20})/count/$', views.UserCountView.as_view()),
    # 判断手机号是否被注册
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileCountView.as_view()),
]